package com.lxw.study.creational.builder.traditional;

public class Client {
    public static void main(String[] args) {
        ComputerBuilder builder = new MacComputerBuilder("I5处理器", "三星125");
        ComputerDirector.makeComputer(builder);
        Computer macComputer = builder.build();
        System.out.println("mac computer:" + macComputer.toString());

        ComputerBuilder lenovoBuilder = new LenovoComputerBuilder("I7处理器", "海力士222");
        ComputerDirector.makeComputer(lenovoBuilder);
        Computer lenovoComputer = lenovoBuilder.build();
        System.out.println("lenovo computer:" + lenovoComputer.toString());
    }

}
